import csv

with open("01.csv","w",encoding="utf-8",newline="") as f:
    data = [
        [1,2,3,4],
        [2,2,3,4],
        [3,2,3,4]
    ]
    writer = csv.writer(f)
    for d in data:
        writer.writerow(d)